package net.asg.games.yokeltowers.images;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureWrap;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class ImageProvider {

    private int SCREEN_WIDTH = 800;
    
    private int SCREEN_HEIGHT = 480;
	
	private TextureAtlas atlas;

	private Texture background;
	
	public ImageProvider() {
	}
	
	public void load() {
		atlas = new TextureAtlas(Gdx.files.internal("game.atlas"));
		background = new Texture(Gdx.files.internal("background.png"));
	}
	
	public void dispose() {
		atlas.dispose();
	}
	
	public int getScreenWidth() {
		return SCREEN_WIDTH;
	}
	
	public int getScreenHeight() {
		return SCREEN_HEIGHT;
	}
	
	public TextureRegion getBlockY() {
		return atlas.findRegion("Y_block");
	}
	
	public TextureRegion getBlockO() {
		return atlas.findRegion("O_block");
	}
	
	public TextureRegion getBlockK() {
		return atlas.findRegion("K_block");
	}
	
	public TextureRegion getBlockE() {
		return atlas.findRegion("E_block");
	}
	
	public TextureRegion getBlockL() {
		return atlas.findRegion("L_block");
	}
	
	public TextureRegion getBlockBash() {
		return atlas.findRegion("Bash_block");
	}

	public Texture getBackground() {
		return background;
	}
}